<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8"/>
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0"/>
    <title>登录</title>
    <link rel="icon" type="image/png" href="/img/icon.png">
    <script type="text/javascript" src="/h5/newall/newall.js"></script>
    <script type="text/javascript" src="/h5/js/all.js"></script>
    <link rel="stylesheet" type="text/css" href="/h5/newall/newall.css">
</head>

<div class="mui-content-padded H5body">

    <div class="content">
        <h4 class="h4">欢迎来到</h4>
        <h2 class="h2">美策科技</h2>
        <div class="inputdiv ">
            <div class="mui-input-row">
                <span class="m86">+86</span>
                <input type="tel" id="phone" class="mui-input-clear" placeholder="请输入您注册的手机号"/>
            </div>
            <div class="mui-input-row password_div">
                <input type="password" id="password" class="mui-input-clear"
                       placeholder="请输入密码"/>
            </div>
            <div class="mui-input-row yam_div">
                <input type="number" id="yam" class="mui-input-clear"
                       placeholder="请输入验证码"/>
                <a class="codeblue huoquyzm">获取验证码</a>
            </div>
            <div class="clearfix">
                <a class="codeash" style="float: right" href="/h5/login/loginPwd.html">忘记密码</a>
            </div>
            <label class="zhengcelabel">
                <input style="
    position: relative;
    top: 2px;
" type="checkbox" name="zhengce" value="tongyi"/>
                我已阅读并同意 <a class="codeash" href="/h5/ios/userNotice.html">《用户服务协议及隐私政策》</a>
            </label>
            <button class="mui-btn mui-btn-primary mui-btn-block denglubtn idpassLogin">登录</button>
            <button class="mui-btn mui-btn-primary mui-btn-block denglubtn yzmLogin">登录</button>
            <div class="desc clearfix">
                <a class="codeblue yanzhengma" style="display:none;">验证码登录</a>
                <a class="codeblue zhuce" href="/h5/regist.html">我要注册</a>
                <a class="codeblue idpass" >账号密码登录</a>
            </div>
        </div>
    </div>

</div>

</body>
<style>
    .yanzhengmaDiv .yam_div,.yanzhengmaDiv .idpass {
        display:block;
    }
    .yanzhengmaDiv .password_div,.yanzhengmaDiv .yanzhengma,.yanzhengmaDiv .zhuce{
        display: none;
    }
    .yanzhengmaDiv .idpassLogin{
        display: none;
    }
    .yanzhengmaDiv .yzmLogin{
        display: block;
    }
    .yzmLogin{
        display: none;
    }

    .yam_div,.idpass {
        display: none;
        text-align: center;
    }

    .yam_div .huoquyzm {
        position: absolute;
        right: 5px;
        top: 5px;
    }

    .content {
        margin: 0 auto;
        width: 80%;
        margin-top: 100px;
    }

    .m86 {
        position: absolute;
        left: 10px;
        top: 7px;
        font-size: 16px;
        font-family: PingFang-SC-Bold, PingFang-SC;
        font-weight: bold;
        color: rgba(0, 0, 0, 1);
        line-height: 22px;
    }

    #phone {
        padding-left: 50px;
    }

    .inputdiv {
        margin-top: 45px;
    }

    .zhengcelabel .codeash {
        text-decoration: underline;
    }

    .zhengcelabel {
        margin-top: 20px;
        display: block;
    }

    .denglubtn {
        margin-top: 20px;
    }

    .desc .codeblue {
        font-size: 14px;
        font-weight: 500;
        line-height: 20px;
    }

    .desc .zhuce {
        float: right;
    }
</style>
<script>
    var logintype='pass';
    $('.yanzhengma').on('click', function () {
        $('.inputdiv').addClass("yanzhengmaDiv");
        logintype='yzm';
    });
    $('.yam_div,.idpass').on('click',function(){
        $('.inputdiv').removeClass("yanzhengmaDiv");
        logintype='pass';
    });
    $('.idpassLogin').on('click',function () {
        if(!$("[name=zhengce]").is(":checked")){
            MC.msg.alert("必须勾选我已阅读并同意");
            return;
        }
        var phone=$('#phone').val();
        var password=$('#password').val();
        MC.loginpost(phone,password,function(){
            window.open('/h5',"_self");
        },logintype);
    });
</script>
</body>
</html>